{if $params.action=="index"}

	{if $Acl.mvc.control.dictionaries.add}
		<p><a href="{$view->siteUrl()}/control/dictionaries/add/" class="ui-button ui-button-text-icons ui-state-default ui-corner-all"><span class="ui-icon ui-icon-plusthick"></span><span class="ui-button-text">{$translate->_('Создать справочник')}</span></a></p>
	{/if}

	{$DictionariesDataTable}
	
{/if}

{if $params.action=="add" || $params.action=="edit"}
	{$Form}
{/if}


{if $params.action=="entries"}

	{if $Acl.mvc.control.dictionaries.addentry}
		<p><a href="{$view->siteUrl()}/control/dictionaries/addentry/dictionaryid/{$params.dictionaryid}/" class="ui-button ui-button-text-icons ui-state-default ui-corner-all"><span class="ui-icon ui-icon-plusthick"></span><span class="ui-button-text">{$translate->_('Добавить запись')}</span></a></p>
	{/if}

	{$EntriesDataTable}
	
{/if}

{if $params.action=="addentry" || $params.action=="editentry"}
	{$Form}
{/if}